package com.xxl.job.executor.jobhandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import com.xxl.job.executor.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 统一出口流水同步任务（作废）
 */
@JobHandler("OutListJobHandler")
@Component
public class OutListJobHandler extends IJobHandler {
    @Autowired
    private IOutListService outListService;

    @Override
    public ReturnT<String> execute(String param) throws Exception {
        outListService.syncData();
        return SUCCESS;
    }

}
